<?php

namespace App\Models;

class ChannelOrder extends ApiBaseModel
{

    protected $table = 'cz_channel_order';
    protected $casts = [
        'channel_order_status' => 'string'
    ];

    public function order(){
        return $this->belongsTo(CzOrder::class,'order_id','id');
    }

    public function user(){
        return $this->belongsTo(SysUser::class,'user_id','id');
    }

    public function channel(){
        return $this->belongsTo(CzChannel::class,'channel_id','id');
    }

}
